package cn.humaohua.study.yanmo_design_pattern.ch20;

public class Client {
    public static void main(String[] args) {
        SecurityMgr securityMgr = SecurityMgr.getInstance();
        securityMgr.login("张三");
        boolean hasPermit = securityMgr.hasPermit("张三", "人员列表", "查看");
        System.out.println(hasPermit);
    }
}
